package top.leix.springdemo.services.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import top.leix.springdemo.mapper.LabMapper;
import org.springframework.stereotype.Service;
import top.leix.springdemo.Res;
import top.leix.springdemo.pojo.Lab;
import top.leix.springdemo.pojo.Teacher;
import top.leix.springdemo.services.LabService;

import javax.annotation.Resource;
import java.util.List;

/**
* @author 16435
* @description 针对表【apply_lab_student(学生申请表)】的数据库操作Service实现
* @createDate 2024-04-21 22:23:42
*/
@Service
public class LabServiceImpl extends ServiceImpl<LabMapper, Lab>
    implements LabService {
    @Resource
    LabMapper labMapper;
    //查询所有的Lab信息
    @Override
    public Res queryLab() {
        List<Lab> labList = labMapper.selectList(new QueryWrapper<>());
        return Res.ok(labList);
    }
}




